﻿#include <stdio.h>
int main(void)
{

	//打印最⼩公倍数
	int m, n, a = 1;
	scanf("%d%d", &m, &n);
	while (a % m != 0 || a % n != 0)
	{
		a++;
	}
	printf("%d", a);


	//分数求和


}